package cn.tedu.tmall.admin.mall.dao.repository;

import cn.tedu.tmall.admin.mall.pojo.po.MallGoodsDetailPO;
import cn.tedu.tmall.admin.mall.pojo.po.MallGoodsPO;

import java.util.List;

/**
 * 数据操作层-商城商品接口
 */
public interface IMallGoodsRepository {


    int countGoodsByTitle(String title);

    int saveGoods(MallGoodsPO mallGoodsPO);

    int saveGoodsDetail(MallGoodsDetailPO mallGoodsDetailPO);

    List<MallGoodsPO> listGoods(Long categoryId);

    int countGoodsById(Long goodsId);

    MallGoodsPO getGoodsBasicById(Long goodsId);

    MallGoodsDetailPO getGoodsDetailByGoodsId(Long goodsId);
}
